﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;

namespace DomainModel
{
    public class EmailTemplate : EntityBase
    {
        public int EmailTemplateID { get; set; }
        public int EmailTemplateType { get; set; }

        [Required(ErrorMessage="name is required")]
        [StringLength(100, ErrorMessage="name maxlength 100")]
        public string EmailTemplateName { get; set; }

        [Required(ErrorMessage = "subject is required")]
        [StringLength(100, ErrorMessage = "subject maxlength 100")]
        public string Subject { get; set; }

        [Required(ErrorMessage = "body is required")]
        public string Body { get; set; }
        public string BodyParameter { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime ModifiedDate { get; set; }
        public DateTime LatestUsedDate { get; set; }
    }
}
